<?php

namespace app\index\service;

use app\common\model\KnowledgeCategory;
use app\index\dao\KnowledgeCategoryDao;
use app\index\dao\LawCaseCategoryDao;
use think\Collection;

/**
 * 文章分类
 * Class KnowledgeCategoryService
 * @package app\index\service
 */
class KnowledgeCategoryService
{

    private KnowledgeCategoryDao $categoryDao;

    public function __construct(KnowledgeCategoryDao $categoryDao)
    {
        $this->categoryDao = $categoryDao;
    }

    /**
     * @return Collection
     */
    public function index(): Collection
    {
        return $this->categoryDao->selectOptions();
    }

}
